//
//  ViewController.m
//  XMNavigationController
//
//  Created by chenming on 2018/6/6.
//  Copyright © 2018年 ChenXiaoMing. All rights reserved.
//

#import "ViewController.h"

// View
#import "PushViewController.h"

#import "UINavigationController+XM.h"

// Controller
#import "XMNavigationController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.view.backgroundColor = [UIColor cyanColor];
    
    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithTitle:@"跳转" style:UIBarButtonItemStylePlain target:self action:@selector(pushView)];
    self.navigationItem.rightBarButtonItem = rightItem;
}

- (void)pushView {
//    self.navigationController.backImage = @"navi_back";
    [self.navigationController pushViewController:[PushViewController new] animated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
